<template>
	<view class="progress-bar">
		<view class="head">
			<view class="title">总进度</view>
			<view class="data">{{progress}}%</view>
		</view>
		<view class="line">
			<view class="progress" :style="'width: ' + progress + '%;'"></view>
		</view>
	</view>
</template>

<script>
	export default {
		name: 'progressBar',
		props: {
			progress: {
				type: Number,
				default: 0
			}
		},
		data() {
			return {
				
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.progress-bar{
		.head{
			height: 40rpx;
			.title{
				float: left;
				line-height: 40rpx;
				font-size: 22rpx;
				color: #7F7F7F;
			}
			.data{
				float: right;
				line-height: 40rpx;
				font-size: 22rpx;
				color: $color-common;
			}
		}
		.line{
			// height: 20rpx;
			padding: 4rpx;
			border-radius: 10rpx;
			border: 1rpx solid $color-common;
			.progress{
				height: 10rpx;
				background-color: $color-common;
				border-radius: 5rpx;
			}
		}
	}
</style>
